package ai.zixing.mediator01;

import lombok.Getter;

public abstract class Colleague {

    @Getter
    private Mediator mediator;

    public Colleague(Mediator mediator) {
        this.mediator = mediator;
    }

    /**
     * 同事间进行交互的抽象方法
     */
    public abstract void exec(String key);
}
